<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">订单:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[order_id]', $orderList, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required', 'id'=>'order-select'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">型号:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[model_id]" class="form-control selectpicker" data-rule="required" id="model-select">
                <option value="">请先选择订单</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">工序:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[process_id]', $processList, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required', 'id'=>'process-select'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">员工:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[user_id]', $userList, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">工作日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="date" name="row[work_date]" class="form-control" required />
        </div>
    </div>
<!---   <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">分工分配:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[tallocationtime_id]', $tallocationtimeList, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

